package com.lian.hope.model.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Builder
@Data
@Schema(description = "志愿者活动DTO")
public class VolunteerActivitiesDTO     {

    @Schema(description = "活动名称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String activityName;
    @Schema(description = "活动简介",requiredMode = Schema.RequiredMode.REQUIRED)
    private String brief;
    @Schema(description = "活动图片url",requiredMode = Schema.RequiredMode.REQUIRED)
    private String imgUrl;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "活动开始时间",requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "活动结束时间",requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime endTime;
    @Schema(description = "活动地址",requiredMode = Schema.RequiredMode.REQUIRED)
    private String address;
    @Schema(description = "已报名志愿者数量",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer registeredVolunteers;
    @Schema(description = "所需志愿者数量",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer requireVolunteers;
    @Schema(description = "活动状态 0:招募中 1:进行中 2:已结束等",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer status;
    @Schema(description = "活动详情html格式",requiredMode = Schema.RequiredMode.REQUIRED)
    private String activityDescHtml;
    @Schema(description = "联系人手机号码",requiredMode = Schema.RequiredMode.REQUIRED)
    private String contactPhone;
    @Schema(description = "联系人头像url",requiredMode = Schema.RequiredMode.REQUIRED)
    private String contactAvatarUrl;
    @Schema(description = "联系人头像昵称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String contactNickname;
}
